/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package encaps.entities;

import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;

/**
 *
 * @author Artem
 */
public interface MovieLocalHome extends EJBLocalHome {
    
    MovieLocal create(String name, String picture, String descript, HashSet genres) throws CreateException;
    MovieLocal findByPrimaryKey(java.lang.Long key) throws FinderException;
/**    Collection<MovieLocal> findByParameters(String title, String pic, String genre,
            Date russianReleaseDate, Date worldReleaseDate, String countries,
            String studio, Double russianCash, Double worldCash, Long length,
            String description, Double rating) throws FinderException;
     
 */
    Collection<MovieLocal> findAll();
    void remove() throws RemoveException;
}
